package org.dromara.dashboard.controller;

//import org.dromara.breed.mapper.BreedSemenOrderMapper;

import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.dashboard.domain.vo.IndexRankListVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/index/rankList")
public class IndexRankListController {

//    @Autowired
//    private IndexHerderService indexHerderService;
//
//    @Autowired
//    private BreedSemenOrderMapper breedSemenOrderMapper;
//    @Autowired
//    private IndexAreaService indexAreaService;

    // 获取首页育种需求量列表数据
    @GetMapping("/right")
    public TableDataInfo<IndexRankListVo> BreedingDemand(){
        List<IndexRankListVo> list = new ArrayList<>();

        LocalDate today = LocalDate.now();


        list.add(new IndexRankListVo(today,"软件22-4",11,29));
        list.add(new IndexRankListVo(today,"软件22-1",10,73));
        return TableDataInfo.build(list);

    }

    @GetMapping("/left")
    public TableDataInfo<IndexRankListVo> leftList(){

        List<IndexRankListVo> list = new ArrayList<>();
        LocalDate today = LocalDate.now();

        list.add(new IndexRankListVo(today,"软件22-4",11,29));
        list.add(new IndexRankListVo(today,"软件22-1",10,73));

        return TableDataInfo.build(list);

    }
}
